<include file="Index:header" />

<div class="container-fluid">
    <div class="row-fluid">
        <!--左栏 starts -->
        <include file="User:left" />
        <!--左栏 end -->


        <!-- content starts -->
        <div id="content" class="span10">
            <ul class="breadcrumb">
                <li>
                    <a href="__APP__/ADMINADSS.html">首页</a> <span class="divider">/</span>
                </li>
                <li class="active">用户组管理</li>
                <div  class="pull-right"> <a data-toggle="modal" data-rel="tooltip" href="#aDdit" >添加用户组 </a></div>
            </ul>

            <table class="table table-striped table-bordered table-condensed datatable">
                <thead>
                <tr>
                    <th>ID</th>
                    <th>用户组</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>
                <volist name="list" id="vo">
                    <tr>
                        <td>{$vo.id}</td>
                        <td>{$vo.title}</td>
                        <td>
                            <a href="#Eedit" data-toggle="modal" data-rel="tooltip" class="icon icon-color icon-edit" title="编辑信息或权限" onclick='edit("{$vo.title}","{$vo.id}")'></a>
                            &emsp;<a href="#" data-rel="tooltip" class="icon icon-color icon-trash"title="删除" onclick="if(confirm('是否要删除？'))window.location.href='__APP__/ADMINADSS/Load/delesy/{$vo.id}'"></a>
                            &emsp;<a href="__APP__/ADMINADSS/Load/rule_group.html?id={$vo.id}" > 分配权限 </a>
                        </td>
                    </tr>
                </volist>
                </tbody>
            </table>
        </div>
        <!-- content end -->
    </div>
    <!--添加用户组 开始-->
    <div id="aDdit" class="modal hide fade" style="width:900px;left:35%">

        <div class="modal-header">
            <a class="close" data-dismiss="modal">&times;</a>
            <h3>添加用户组</h3>
        </div>
        <div class="modal-body">
            <form method="post"  action='__APP__/ADMINADSS/Load/tfAdd'>
                <input name="q" id="q" type="hidden" value="ag" />
                <input name="u" type="hidden" value="__APP__/ADMINADSS/Load/userGroups.html" />
                <table class="table">
                    <tbody>
                    <tr>
                        <td>
                            用户组名称：
                        </td>
                        <td>
                            <input name="title" type="text" class="span5" placeholder="请输入用户组名...">
                        </td>
                    </tr>
                    </tbody>
                </table>
                <div class="modal-footer">
                    <a href="#" class="btn" data-dismiss="modal">关闭</a>
                    <button type="submit" class="btn btn-primary" >确认添加</button>
                </div>
            </form>
        </div>

    </div>

    <!--添加用户组 结束-->
    <!--编辑 开始-->
    <div id="Eedit" class="modal hide fade" style="width:900px;left:35%">
        <div class="modal-header">
            <a class="close" data-dismiss="modal">&times;</a>
            <h3>编辑</h3>
        </div>
        <div class="modal-body">
            <form method="post"  action='__APP__/ADMINADSS/Load/tfUpda'>
                <input name="sid" id="sids" type="hidden" value="" />
                <input name="q" id="q" type="hidden" value="ag" />
                <input name="u" type="hidden" value="__APP__/ADMINADSS/Load/userGroups.html" />
                <input name="n" type="hidden" value="修改" />
                <table class="table">
                    <tbody>
                    <tr>
                        <td>
                            用户组名称：
                        </td>
                        <td>
                            <input name="title" id="titlsn" type="text" class="span5" value="">
                        </td>
                    </tr>
                    </tbody>
                </table>
                <div class="modal-footer">
                    <a href="#" class="btn" data-dismiss="modal">关闭</a>
                    <button type="submit" class="btn btn-primary" >确认修改</button>
                </div>
            </form>
        </div>
    </div>
    <!--编辑 结束-->
</div>


<include file="Index:footer" />
  


        
     